<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			html, body{
				width: 100%;
				height: 100%;
			}
			#canvas{
				position: absolute;	
				left:0;
				top: 0;
				right: 0;
				bottom: 0;
				margin: auto;	
				background: pink;		
			}
		</style>
		<script>
			window.onload = function(){
				var canvas = document.getElementById("canvas")
				
				if(canvas.getContext){
					var ctx = canvas.getContext("2d")
					
					ctx.beginPath()
					ctx.moveTo(50, 50)
					ctx.lineTo(300, 0)
					ctx.lineTo(200, 200)
					ctx.stroke()
					
					ctx.beginPath()
					ctx.moveTo(50,50)
					ctx.arcTo(300, 0, 200, 200, 50)
					ctx.stroke()
					
				}
			}
		</script>
	</head>
	<body>
		<canvas id="canvas" height="300px" width="300px"></canvas>
	</body>
</html>
